package com.weiweiqin.service.impl;

import com.weiweiqin.dao.KhSettingDao;
import com.weiweiqin.model.KhSetting;
import com.weiweiqin.service.KhSettingService;
import com.weiweiqin.vo.common.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class KhSettingServiceImpl implements KhSettingService {
	@Autowired
	private KhSettingDao khSettingDao;

	public List<KhSetting> pageList(Page page, Map<String, Object> conditions) {
		return khSettingDao.pageList(page, conditions);
	}

	public int totalCount(Map<String, Object> conditions) {
		return khSettingDao.totalCount(conditions);
	}

	public void save(KhSetting khSetting) {
		khSettingDao.insert(khSetting);
		
	}

	public void update(KhSetting khSetting) {
		khSettingDao.update(khSetting);
		
	}

	public KhSetting get(int id) {
		return khSettingDao.get(id);
	}

	


}